package com.assignwork.service;

import com.assignwork.dto.CorpTeamSearchDTO;
import com.assignwork.dto.CorpTeamSubmitDTO;
import com.assignwork.entity.CorpTeam;
import com.assignwork.vo.CorpTeamListVO;
import com.assignwork.vo.CorpTeamMachineStatusVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * @ClassName ICorpTeamService
 * @Description 作业队接口
 * @Author dujianyu
 * @Date 2023/12/12 13:50
 */
public interface ICorpTeamService extends BaseService<CorpTeam> {
    /**
     * 分页
     * @param dto 搜索参数
     * @param page 分页
     * @return IPage<CorpTeamListVO>
     * @author dujianyu
     * @since 2023/12/12 14:02
     */
    IPage<CorpTeamListVO> selectCorpTeamPage(CorpTeamSearchDTO dto, IPage<CorpTeamListVO> page);

    /**
     * 列表
     * @param dto 搜索参数
     * @return List<CorpTeamListVO>
     * @author dujianyu
     * @since 2023/12/12 14:08
     */
    List<CorpTeamListVO> selectCorpTeamList(CorpTeamSearchDTO dto);

    /**
     * 新增或修改
     * @param dto 数据
     * @return boolean
     * @author dujianyu
     * @since 2023/12/12 14:28
     */
    boolean submitCorpTeam(CorpTeamSubmitDTO dto);

    /**
     * 机械情况
     * @param dto 搜索参数
     * @return List<CorpTeamMachineStatusVO>
     * @author dujianyu
     * @since 2023/12/15 10:58
     */
    List<CorpTeamMachineStatusVO> selectMachineStatusList(CorpTeamSearchDTO dto);
}
